home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / customlayout / card.h.z / card.h
C/C++ Source or Header  |  2002-04-08  |  1KB  |  44 lines

  1. /****************************************************************************
  2. ** $Id:  qt/card.h   3.0.3   edited Oct 12 12:18 $
  3. **
  4. ** Definition of simple flow layout for custom layout example
  5. **
  6. ** Created : 979899
  7. **
  8. ** Copyright (C) 1997 by Trolltech AS.  All rights reserved.
  9. **
  10. ** This file is part of an example program for Qt.  This example
  11. ** program may be used, distributed and modified without limitation.
  12. **
  13. *****************************************************************************/
  14.  
  15. #ifndef CARD_H
  16. #define CARD_H
  17.  
  18. #include <qlayout.h>
  19. #include <qptrlist.h>
  20.  
  21. class CardLayout : public QLayout
  22. {
  23. public:
  24.     CardLayout( QWidget *parent, int dist )
  25.     : QLayout( parent, 0, dist ) {}
  26.     CardLayout( QLayout* parent, int dist)
  27.     : QLayout( parent, dist ) {}
  28.     CardLayout( int dist )
  29.     : QLayout( dist ) {}
  30.     ~CardLayout();
  31.  
  32.     void addItem( QLayoutItem *item );
  33.     QSize sizeHint() const;
  34.     QSize minimumSize() const;
  35.     QLayoutIterator iterator();
  36.     void setGeometry( const QRect &rect );
  37.  
  38. private:
  39.     QPtrList<QLayoutItem> list;
  40.  
  41. };
  42.  
  43. #endif
  44.